<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 
<%

String menuid = (String)request.getParameter("menuid");
 %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> 
<head> 
	<%@ include file="../../include.jsp"%>   
    <link rel="stylesheet" href="<%=basePath %>thirtpart/jquery/themes/base/jquery.ui.all.css">  
    <script src="<%=basePath %>thirtpart/jquery/ui/jquery.ui.core.js"></script> 
    <script src="<%=basePath %>thirtpart/jquery/ui/jquery.ui.widget.js"></script> 
    <script src="<%=basePath %>thirtpart/jquery/ui/jquery.ui.position.js"></script> 
    <script src="<%=basePath %>thirtpart/jquery/ui/jquery.ui.autocomplete.js"></script> 
    <link rel="stylesheet" href="<%=basePath %>thirtpart/jquery/themes/demos.css"> 
    <script> 
    $(function() {
        $("#autocomplete").autocomplete({
         delay: 0,
	     minLength:1, //表示输入多少个字才出现自动补全框    
	     source:function(request,response){
	      $.ajax(
	       {
	        url: '<%=basePath %>dict/ajaxcombox.do?db_table=WDSS_STANDARD&col_id=id&col_name=STANDARDNAME&condition=CATEGORY='+encodeURIComponent('\'病名\''), 
	        dataType: "json", 
	        data: request, 
	        success:function(data){ 
	        	 response(data);  
	        }
	       }
	      );
	     }
     
    });
  });

    </script> 
</head> 
<body> 
    
<div class="demo"> 
<div class="ui-widget"> 
    <label for="tags">Tags: </label> 
    <input id="autocomplete" /> 
</div> 
 
</div>
 
</body> 
</html> 
